#ifndef __MW_CPP_HITEFFECT_H__
#define __MW_CPP_HITEFFECT_H__

#include "cocos2d.h"
#include "GameLayer.h"
USING_NS_CC;

class HitEffect : public cocos2d::Sprite
{
    
private:
public:
    bool m_active=true;
    
public:
    CREATE_FUNC(HitEffect);
    HitEffect();
    ~HitEffect(void);
    
    bool init();
    static void preSet();
    static HitEffect* getOrCreateHitEffect(int x, int y, float rotation, float scale);
    void  destory();
    void  reset(int x, int y, float rotation, float scale);
};
#endif /* defined(__MW_CPP_HITEFFECT_H__) */